package cn.weekimwee.firstlineofcodeforkotlin.unit5

import android.content.BroadcastReceiver
import android.content.Context
import android.content.Intent
import org.jetbrains.anko.toast

/**
 * Created by Wee Kim Wee on 2018/2/17.
 * 要去在androidmanifest中注册
 */
class MyBroadcastReceiver:BroadcastReceiver(){
    override fun onReceive(context: Context?, intent: Intent?) {
        context?.toast("received in my broadcast receiver")
    }
}